package com.xdb.sqlparser.dialect.mysql.ast;

import com.xdb.sqlparser.ast.AbstractSQLObjectImpl;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public abstract class MySqlObjectImpl extends AbstractSQLObjectImpl implements MySqlObject {

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor instanceof MySqlASTVisitor) {
			accept0((MySqlASTVisitor) visitor);
		} else {
			throw new IllegalArgumentException("not support visitor type : " + visitor.getClass().getName());
		}
	}

	public abstract void accept0(MySqlASTVisitor visitor);
}
